'''
Created on Apr 19, 2012

@author: lavang
'''
import unittest

# Link New Group
def xpathNewGroup():
    return "//a[contains(text(),'New group')]"

# txt Name
def xpathTxtName():
    return "//input[@name='name']"

# txt Description
def xpathTxtDescription():
    return "//input[@name='description']"

# txt Unique group key
def xpathTxtUniqueGroupKey():
    return "//input[@id='unique_key_id']"

# txt maximum key use
def xpathTxtMaximumKey():
    return "//input[@name='key_max_usage']"

# Cbb Default learner type
def xpathCbbDefaultLearnerType():
    return "//select[@name='user_types_ID']"

# Btn Submit
def xpathBtnSubmit():
    return "//input[@name='submit_type']"

# link User groups ( on create page), click on it to back User group page
def xpathLinkUserGroups():
    return "//a[contains(text(),'User groups')]"

# icon Delete
def xpathDelete(userGroupName):
    return "//span[contains(text(),'"+userGroupName+"')]/../../../td[5]/img"

# txt search
def xpathTxtSearchGroup():
    return "//input[@id='0_sortedTable_filter']"

# tab Group user
def xpathTabGroupUser():
    return "//a[contains(text(),'Group users')]"

# tab Group lesson
def xpathTabGroupLesson():
    return "//a[text()='Group lessons']"

# tab Group course
def xpathTabGroupCourse():
    return "//a[contains(text(),'Group courses')]"